<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <title>结果公布</title>
    <meta name="keywords" content=""/>
    <meta name="description" content=""/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="../../layui/css/layui.css">
    <link rel="stylesheet" href="../../xznstatic/css/common.css"/>
    <link rel="stylesheet" href="../../xznstatic/css/style.css"/>
    <script type="text/javascript" src="../../xznstatic/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../../xznstatic/js/jquery.SuperSlide.2.1.1.js"></script>
</head>
<style>
    html::after {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        content: '';
        display: block;
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
    }

    #test1 {
        overflow: hidden;
    }

    #test1 .layui-carousel-ind li {
        width: 16px;
        height: 10px;
        border-width: 0;
        border-style: solid;
        border-color: rgba(0, 0, 0, .3);
        border-radius: 20px;
        background-color: #f7f7f7;
        box-shadow: 0 0 0px;
    }

    #test1 .layui-carousel-ind li.layui-this {
        width: 30px;
        height: 10px;
        border-width: 0;
        border-style: solid;
        border-color: rgba(0, 0, 0, .3);
        border-radius: 20px;
        background-color: rgba(112, 243, 255, 0.71);
        box-shadow: 0 0 6px;
    }

    .recommend {
        padding: 10px 0;
        display: flex;
        justify-content: center;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .recommend .box {
        width: 1002px;
        margin: 0 auto;
    }

    .recommend .box .title {
        padding: 10px 5px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
    }

    .recommend .box .title span {
        padding: 0 10px;
        font-size: 16px;
        line-height: 1.4;
    }

    .recommend .box .filter {
        padding: 0 10px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        flex-wrap: wrap;
    }

    .recommend .box .filter .item-list {
        display: flex;
        align-items: center;
    }

    .recommend .box .filter .item-list .lable {
        font-size: 14px;
        color: #333;
        box-sizing: border-box;
    }

    .recommend .box .filter .item-list input {
        padding: 0 10px;
        box-sizing: border-box;
        outline: none;
    }

    .recommend .box .filter button {
        display: flex;
        padding: 0 10px;
        box-sizing: border-box;
        align-items: center;
        justify-content: center;
        outline: none;
    }

    .recommend .box .filter button i {
        margin-right: 4px;
    }

    .recommend .box .list {
        display: flex;
        flex-wrap: wrap;
    }

    .recommend .box .list .list-item {
        flex: 0 0 50%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .recommend .box .list .list-item .list-item-body {
        cursor: pointer;
        transition: all 0.3s;
    }

    .recommend .box .list .list-item .list-item-body:hover {
        transform: translateY(-5px);
        box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
    }

    .recommend .box .list .list-item .list-item-body .item-info {
        width: 100%;
    }

    .recommend .box .list .list-item .list-item-body .item-info .title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .recommend .box .list .list-item .list-item-body .item-info .desc {
        display: flex;
        align-items: center;
    }

    .recommend .box .filter {
        background-color: #f5f7fa;
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .recommend .box .filter .item-list {
        margin: 0 10px;
    }

    .recommend .box .filter .item-list input {
        border-radius: 4px;
    }

    .recommend .box .title {
        background: linear-gradient(90deg, rgba(112, 243, 255, 0.9) 0%, rgba(112, 243, 255, 0.6) 100%);
    }

    .recommend .box .list .list-item3 {
        flex: 0 0 33.33%;
    }

    .recommend .box .list .list-item5 {
        flex: 0 0 20%;
    }

    .recommend .box .news {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .recommend .box .news .list-item {
        flex: 0 0 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .recommend .box .news .list-item .list-item-body {
        cursor: pointer;
        border: 1px solid rgba(0, 0, 0, 3);
        padding: 10px;
        box-sizing: border-box;
        display: flex;
    }

    .recommend .box .news .list-item .list-item-body img {
        width: 120px;
        height: 100%;
        display: block;
        margin: 0 auto;
    }

    .recommend .box .news .list-item .list-item-body .item-info {
        flex: 1;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding-left: 10px;
        box-sizing: border-box;
    }

    .recommend .box .news .list-item .list-item-body .item-info .name {
        padding-top: 5px;
        color: red;
        font-size: 14px;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .recommend .box .news .list-item .list-item-body .item-info .time {
        padding-top: 5px;
        color: red;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        box-sizing: border-box;
    }

    .recommend .box .news .list-item1 {
        flex: 0 0 100%;
    }

    .recommend .box .news .list-item3 {
        flex: 0 0 33.33%;
    }

    .index-pv1 .animation-box:hover {
        transform: perspective(1000px) translate3d(0px, 0px, 0px) scale(1.25) rotate(0deg) skew(0deg, 0.5deg);
        transition: all 0.3s;
    }

    .layui-laypage .layui-laypage-count {
        padding: 0 10px;
    }

    .layui-laypage .layui-laypage-skip {
        padding-left: 10px;
    }

    .list .list-item {
        cursor: pointer;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .list .list-item:hover .list-item-body {
        transform: translateY(-3px);
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }

    .list .list-item-body {
        transition: all 0.3s;
    }

    .filter {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .filter .item-list {
        display: flex;
        align-items: center;
        margin: 0 10px;
    }

    .item-info .desc {
        display: flex;
        align-items: center;
    }
</style>
<body>
<div id="app">
<!--    <div class="banner">-->
<!--        <div class="layui-carousel" id="test1"-->
<!--             :style='{"boxShadow":"3px 0 6px","margin":"0 auto","borderColor":"rgba(0,0,0,.3)","borderRadius":"00px","borderWidth":"0","width":"100%","borderStyle":"solid"}'>-->
<!--            <div carousel-item>-->
<!--                <div v-for="(item,index) in swiperList" :key="index">-->
<!--                    <img style="width: 100%;height: 100%;object-fit:cover;" :src="item.img"/>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <div class="recommend index-pv1"
         :style='{"padding":"10px 0 10px 0","boxShadow":"0 0 6px rgba(0,0,0,0.1)","margin":"0","borderColor":"#eee","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"1px","borderStyle":"solid"}'>
        <div class="box" style='width:100%'>
            <div class="title"
                 :style='{"padding":"10px 0 10px 0","boxShadow":"0 0 6px rgba(0,0,0,0.1)","margin":"10px 0 10px 0","borderColor":"#eee","backgroundColor":"#fff","color":"#333","borderRadius":"4px","alignItems":"center","borderWidth":"1px","fontSize":"16px","borderStyle":"solid"}'>
                <span>结果公布</span>
            </div>
            <form class="layui-form filter"
                  :style='{"padding":"20px","boxShadow":"0 0 6px rgba(0,0,0,0.1)","margin":"10px 0 10px 0","borderColor":"#eee","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"1px","borderStyle":"solid"}'>
                <div class="item-list">
                    <div class="lable"
                         :style='{"padding":"0 10px","color":"#333","textAlign":"right","width":"auto","fontSize":"14px"}'>
                        用户姓名
                    </div>
                    <input type="text"
                           :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0.1)","borderColor":"#eee","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","width":"150px","fontSize":"14px","borderStyle":"solid","height":"40px"}'
                           name="yonghuxingming" id="yonghuxingming" placeholder="用户姓名" autocomplete="off"
                           class="layui-input">
                </div>
                <div class="item-list">
                    <div class="lable"
                         :style='{"padding":"0 10px","color":"#333","textAlign":"right","width":"auto","fontSize":"14px"}'>
                        评审专业
                    </div>
                    <input type="text"
                           :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0.1)","borderColor":"#eee","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","width":"150px","fontSize":"14px","borderStyle":"solid","height":"40px"}'
                           name="pingshenzhuanye" id="pingshenzhuanye" placeholder="评审专业" autocomplete="off"
                           class="layui-input">
                </div>
                <div class="item-list">
                    <div class="lable"
                         :style='{"padding":"0 10px","color":"#333","textAlign":"right","width":"auto","fontSize":"14px"}'>
                        职称级别
                    </div>
                    <input type="text"
                           :style='{"padding":"0 10px","boxShadow":"0 0 6px rgba(0,0,0,0.1)","borderColor":"#eee","backgroundColor":"#fff","color":"#333","borderRadius":"4px","textAlign":"left","borderWidth":"1px","width":"150px","fontSize":"14px","borderStyle":"solid","height":"40px"}'
                           name="zhichengjibie" id="zhichengjibie" placeholder="职称级别" autocomplete="off"
                           class="layui-input">
                </div>
                <button :style='{"padding":"0 15px","boxShadow":"0 0 8px rgba(0,0,0,0)","margin":"0 0 0 10px","borderColor":"#409EFF","backgroundColor":"#409EFF","color":"#fff","borderRadius":"4px","borderWidth":"0","width":"auto","fontSize":"14px","borderStyle":"solid","height":"40px"}'
                        id="btn-search" type="button" class="layui-btn layui-btn-normal">
                    <i class="layui-icon layui-icon-search"></i>搜索
                </button>
                <button :style='{"padding":"0 15px","boxShadow":"0 0 8px rgba(0,0,0,0)","margin":"0 0 0 10px","borderColor":"#409EFF","backgroundColor":"#409EFF","color":"#fff","borderRadius":"4px","borderWidth":"0","width":"auto","fontSize":"14px","borderStyle":"solid","height":"40px"}'
                        v-if="isAuth('jieguogongbu','新增')" @click="jump('../jieguogongbu/add.html')" type="button"
                        class="layui-btn btn-theme">
                    <i v-if="true" class="layui-icon">&#xe654;</i>添加
                </button>
            </form>
            <!-- 样式一 -->
            <div class="list">
                <div @click="jump('../jieguogongbu/detail.html?id='+item.id)" v-for="(item,index) in dataList" :key="index" class="list-item">
                    <div class="list-item-body animation-box" :style='{"padding":"20px","boxShadow":"0 0 6px rgba(0,0,0,0.1)","margin":"0 0 20px 0","borderColor":"#eee","backgroundColor":"#fff","borderRadius":"4px","borderWidth":"1px","borderStyle":"solid"}'>
                        <div class="info">
                            <div class="item-info">
                                <div class="title" :style='{"padding":"10px 0","color":"#333","fontSize":"16px","fontWeight":"bold"}'>
                                    {{item.yonghuxingming}}
                                </div>
                                <div class="desc" :style='{"padding":"5px 0","color":"#666","fontSize":"14px"}'>
                                    <span>评审专业: {{item.pingshenzhuanye}}</span>
                                    <span style="margin-left: 20px">职称级别: {{item.zhichengjibie}}</span>
                                </div>
                                <div class="desc" :style='{"padding":"5px 0","color":"#666","fontSize":"14px"}'>
                                    <span>工作单位: {{item.gongzuodanwei}}</span>
                                </div>
                                <div class="desc" :style='{"padding":"5px 0","color":"#666","fontSize":"14px"}'>
                                    <span>评审结果: <span :style="item.pingshenjieguo === '通过' ? 'color: #67C23A' : 'color: #F56C6C'">{{item.pingshenjieguo}}</span></span>
                                    <span style="margin-left: 20px">评审日期: {{item.pingshenriqi}}</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="pager" id="pager" :style="{textAlign:'center'}"></div>
        </div>
    </div>


</div>

<script src="../../layui/layui.js"></script>
<script src="../../js/vue.js"></script>
<script src="../../js/config.js"></script>
<script src="../../modules/config.js"></script>
<script src="../../js/utils.js"></script>

<script type="text/javascript">
    var vue = new Vue({
        el: '#app',
        data: {
            swiperList: [],
            dataList: [],
            // 搜索表单
            searchForm: {
                yonghuxingming: '',
                pingshenzhuanye: '',
                zhichengjibie: ''
            }
        },
        filters: {
            newsDesc: function (val) {
                if (val) {
                    if (val.length > 60) {
                        return val.substring(0, 60).replace(/<[^>]*>/g).replace(/undefined/g, '');
                    } else {
                        return val.replace(/<[^>]*>/g).replace(/undefined/g, '');
                    }
                }
                return '';
            }
        },
        methods: {
            isAuth(tablename, button) {
                return isFrontAuth(tablename, button)
            },
            jump(url) {
                jump(url)
            },
            // 搜索
            search() {
                this.pageList();
            }
        }
    });

    layui.use(['layer', 'element', 'carousel', 'laypage', 'http', 'jquery'], function () {
        var layer = layui.layer;
        var element = layui.element;
        var carousel = layui.carousel;
        var laypage = layui.laypage;
        var http = layui.http;
        var jquery = layui.jquery;

        var limit = 8;

        // 获取轮播图 数据
        http.request('config/list', 'get', {
            page: 1,
            limit: 5
        }, function (res) {
            if (res.data.list.length > 0) {
                let swiperList = [];
                res.data.list.forEach(element => {
                    if (element.value != null) {
                        swiperList.push({
                            img: element.value
                        });
                    }
                });
                vue.swiperList = swiperList;

                vue.$nextTick(() => {
                    carousel.render({
                        elem: '#test1',
                        width: '100%',
                        height: '430px',
                        arrow: 'hover',
                        anim: 'default',
                        autoplay: 'true',
                        interval: '3000',
                        indicator: 'inside'
                    });

                })
                // vue.$nextTick(()=>{
                //   window.xznSlide();
                // });
            }
        });

        // 分页列表
        vue.pageList = function() {
            // 获取列表数据
            var param = {
                page: 1,
                limit: limit
            };
            
            if (jquery('#yonghuxingming').val()) {
                param['yonghuxingming'] = jquery('#yonghuxingming').val() ? '%' + jquery('#yonghuxingming').val() + '%' : '';
            }
            if (jquery('#pingshenzhuanye').val()) {
                param['pingshenzhuanye'] = jquery('#pingshenzhuanye').val() ? '%' + jquery('#pingshenzhuanye').val() + '%' : '';
            }
            if (jquery('#zhichengjibie').val()) {
                param['zhichengjibie'] = jquery('#zhichengjibie').val() ? '%' + jquery('#zhichengjibie').val() + '%' : '';
            }

            http.request('jieguogongbu/list', 'get', param, function(res) {
                if(res.code == 0) {
                    vue.dataList = res.data.list;
                    // 分页
                    laypage.render({
                        elem: 'pager',
                        count: res.data.total,
                        limit: limit,
                        groups: 3,
                        layout: ["prev", "page", "next"],
                        theme: '#409EFF',
                        jump: function(obj, first) {
                            param.page = obj.curr;
                            //首次不执行
                            if (!first) {
                                http.request('jieguogongbu/list', 'get', param, function(res) {
                                    vue.dataList = res.data.list;
                                })
                            }
                        }
                    });
                }
            });
        }

        vue.pageList();

        // 搜索按钮
        jquery('#btn-search').click(function(e) {
            vue.pageList();
        });
    });

    window.xznSlide = function () {
        jQuery(".banner").slide({mainCell: ".bd ul", autoPlay: true, interTime: 5000});
        jQuery("#ifocus").slide({
            titCell: "#ifocus_btn li",
            mainCell: "#ifocus_piclist ul",
            effect: "leftLoop",
            delayTime: 200,
            autoPlay: true,
            triggerTime: 0
        });
        jQuery("#ifocus").slide({titCell: "#ifocus_btn li", mainCell: "#ifocus_tx ul", delayTime: 0, autoPlay: true});
        jQuery(".product_list").slide({
            mainCell: ".bd ul",
            autoPage: true,
            effect: "leftLoop",
            autoPlay: true,
            vis: 5,
            trigger: "click",
            interTime: 4000
        });
    };
</script>
</body>
</html>
